# 下载并构建GoogleTest
# include(FetchContent)
# FetchContent_Declare(
#     googletest
#     URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
#     DOWNLOAD_EXTRACT_TIMESTAMP true
# )
# FetchContent_MakeAvailable(googletest)
# 查找系统安装的 GTest
find_package(GTest REQUIRED)

# 添加测试可执行文件
add_executable(
    my_stl_test
    type_traits_test.cpp
)

# 链接系统 GTest
target_link_libraries(
    my_stl_test
    GTest::GTest
    GTest::Main
)

# 发现测试
include(GoogleTest)
gtest_discover_tests(my_stl_test) 